/// ClientUserUpdateDto
class ClientUserUpdateDto {
  /// 用户名
  final String? userName;
  /// 用户姓名
  final String? fullName;
  /// 邮箱
  final String? email;
  /// 头像地址
  final String? headUrl;
  /// 电话号码
  final String? phone;

  ClientUserUpdateDto({
    this.userName,
    this.fullName,
    this.email,
    this.headUrl,
    this.phone,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (userName != null) data['userName'] = userName;
    if (fullName != null) data['fullName'] = fullName;
    if (email != null) data['email'] = email;
    if (headUrl != null) data['headUrl'] = headUrl;
    if (phone != null) data['phone'] = phone;
    return data;
  }

  factory ClientUserUpdateDto.fromJson(Map<String, dynamic> json) {
    return ClientUserUpdateDto(
      userName: json['userName'],
      fullName: json['fullName'],
      email: json['email'],
      headUrl: json['headUrl'],
      phone: json['phone'],
    );
  }
}